<div class="action-dialog-model-fixed-body">
	<div class="detailsBox">
		<div class="openBox">
			<h3>
			<i class="jtIco"></i>新增品牌</h3>
	        <div class="detaiTab">
	        	<form class="action-ajax-form" action="/rbrand/inbrand" method="post" >
	            <table width="100%" border="0" cellspacing="0" cellpadding="0">
	            	<tbody>
	                	<tr>
	                    	<td align="right" class="bg" width="15%">申报省份<span style="color: red;">*</span>:</td>
	                      	<td width="35%">
	                      		<select name="hostProvince" id="hostProvince">
                                    <option  value="">请选择</option>
	                        		<#list ActOrgEntitys as ActOrgEntity>
	                        			<option value="${ActOrgEntity.orgId}" <#if ActOrgEntity.orgId == vo.orgId>selected="selected" </#if>>${ActOrgEntity.orgName}
	                        		</#list>
	                        	</select>
	                        <td align="right" class="bg" width="15%">经办人<span style="color: red;">*</span>:</td>
	                        <td>
	                        	<input type="text" name="operator" value="${currentUser}" readonly="readonly">
	                        	<input type="hidden" name="operatorId" value="${currentUserCode}">
	                        </td>
	                    </tr>
	                	<tr>
	                    	<td align="right" class="bg" width="15%">品牌名称<span style="color: red;">*</span>:</td>
	                      	<td width="35%">
	                      		<input type="text" name="brandName"></td>
							<td align="right" class="bg" width="15%">品牌来源<span style="color: red;">*</span>:</td>
	                      	<td>
	                      		<@select type="radio" dataSouceType="brandSource" class="tabInp" name="brandSource" />
	                      		<input type="text" name="brandSourceDes"  />
	                      	</td>	                      		
	                    </tr>
	                    <tr><td align="left" class="bg" width="15%" colspan="4" style="background: #e2e2e2;font-weight: bold;padding-left: 20px;color: #333;font-size: 14px";>品牌基本介绍</td></tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">品牌知名度<span style="color: red;">*</span>:</td>
	                      	<td colspan="3">
	                      		<@select type="radio" dataSouceType="brandPopularity" class="tabInp" name="popularity" />
	                      	</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">品牌成立时间:</td>
	                      	<td>
	                      		<@date name="brandCreateTime"  class="tabInp"/>
	                      	</td>
	                      	<td align="right" class="bg" width="15%">注册资本:</td>
	                      	<td>
	                      		<input type="text" name="registeredCapital" id="registeredCapital" class="inputNum"/>&nbsp;&nbsp;万元
	                      	</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">年销售收入:</td>
	                      	<td>
	                      		<input type="text" name="salesIncomeYear" id="salesIncomeYear"  class="inputNum" />&nbsp;&nbsp;万元
	                      	</td>
	                      	<td align="right" class="bg" width="15%">市场占有率排名:</td>
	                      	<td>
	                      		<input type="text" name="marketOrder" id="marketOrder"  class="inputNum" />&nbsp;&nbsp;名
	                      	</td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">所属行业<span style="color: red;">*</span>:</td>
	                      	<td colspan="3">
	                      		<@select type="radio" dataSouceType="vocation" class="tabInp" name="theIndustry" />
	                      		<input type="text" name="reOther" >
	                      	</td>		                    
	                    </tr>
	                	<tr>
	                    	<td align="right" class="bg" width="15%">经营模式:</td>
	                      	<td colspan="3">
	                      		<textarea name="manageType" cols="80" rows="5" placeholder="输入内容限2000字"></textarea>
	                      	</td>
	                    </tr>
	                    <tr>
	                      	<td align="right" class="bg" width="15%">分销渠道:</td>
	                        <td colspan="3">
	                      	    <textarea name="distributChannel" cols="80" rows="5" placeholder="输入内容限2000字"></textarea>
	                        </td>
	                    </tr>
	                    <tr>
	                    	<td align="right" class="bg" width="15%">主要产品<span style="color: red;">*</span>:</td>
	                      	<td colspan="3">
	                      		<textarea name="mainProduct" cols="80" rows="5" placeholder="输入内容限2000字"></textarea>
	                      	</td>
	                    </tr>	
	                	<tr>
	                    	<td align="right" class="bg" width="15%">产品优势:</td>
	                      	<td colspan="3">
	                      		<textarea name="productAdvantage" cols="80" rows="5" placeholder="输入内容限2000字"></textarea>
	                      	</td>
	                    </tr>	  
	                	<tr>
	                    	<td align="right" class="bg" width="15%">竞争对手:</td>
	                      	<td colspan="3">
	                      		<textarea name="competitor" cols="80" rows="5" placeholder="输入内容限2000字" ></textarea>
	                      	</td>
	                    </tr>	
	               	</tbody>
	        	</table>
	        	<div class=" mtb20 tac" >
					<input type="submit" class="btn_auto_30 btn_blue" value="保 存">&nbsp;&nbsp;&nbsp;&nbsp;
				</div>
	        </form>
	        </div>
        </div>
	</div>
</div>
<script>
	
	$("form").submit(function(e){
	  return validate();
	});
	
	function validate() {
 		var numRe = /^[0-9]*$/;
 		var flRe = /^[0-9]+([.]{1}[0-9]+){0,1}$/;
 		
 		var registeredCapital = $("#registeredCapital").val();
 		if (registeredCapital != null && registeredCapital != "" && !flRe.test(registeredCapital)) {
 			$.actionDialog({
					message : "注册资本格式错误"
			});
 			return false;
 		}
 		var salesIncomeYear = $("#salesIncomeYear").val();
 		if (salesIncomeYear != null && salesIncomeYear != "" && !flRe.test(salesIncomeYear)) {
 			$.actionDialog({
					message : "年销售收入格式错误"
			});
 			return false;
 		}
 		
 		var marketOrder = $("#marketOrder").val();
 		if (marketOrder != null && marketOrder != "" && !numRe.test(marketOrder)) {
   			$.actionDialog({
					message : "市场占有率排名格式错误"
			});
 			return false;		
 		}
 		return true;
 	}
	
</script>
 